#pragma once
#ifndef __DEPTHSTENCILVIEW_H__
#define __DEPTHSTENCILVIEW_H__

#include "RenderView.h"

namespace WindGE
{
	class WIND_CORE_API DepthStencilView : public RenderView
	{
	public:
		DepthStencilView();
		virtual ~DepthStencilView();

		virtual bool init(RenderDevicePtr renderDevice, TexturePtr tex, Texture2DPtr texBuff);
		virtual void release();

		inline ID3D11DepthStencilView*  d3dptr()	const	{ return dsv_;	}
		inline ID3D11DepthStencilView** d3dptrptr()			{ return &dsv_; }

	private:
		ID3D11DepthStencilView*		dsv_;
	};

}//end namespace WindGE

#endif	//__DEPTHSTENCILVIEW_H__

